<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "member_notice".
 *
 * @property int $id
 * @property string $notice_title
 * @property string $notice_content
 * @property int $member_id
 * @property int $update_time
 * @property int $create_time
 */
class MemberNotice extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'member_notice';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['notice_title', 'notice_content', 'update_time', 'create_time'], 'required'],
            [['notice_content'], 'string'],
            [['member_id', 'update_time', 'create_time'], 'integer'],
            [['notice_title'], 'string', 'max' => 64],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'notice_title' => 'Notice Title',
            'notice_content' => 'Notice Content',
            'member_id' => 'Member ID',
            'update_time' => 'Update Time',
            'create_time' => 'Create Time',
        ];
    }
}
